<?
class ccdsBackendPlugin
{


    var $ccdSQL;
    var $smarty;
    var $config;

    var $tools;

    var $ObjectHandler;
    var $ObjectConfig;
    var $labels;

    private $registered_functions=array();
    public $tpl_dir;

    function __construct( )
    {
        $this->config=ccdsConfig::getInstance();
        $this->ccdSQL=ccdSQL::getInstance();
        $this->smarty=ccdsSmarty::getInstance();
        $this->tools=ccdsTools::getInstance();
        $this->ObjectConfig=ccdsObjectConfig::getInstance();
        $this->formFieldHandler=ccdsFormFieldHandler::getInstance();
				$this->modules=ccdsModuleManager::getInstance();
				
        $this->labels=$this->smarty->get_config_vars();
        $this->tpl_dir = $this->config->get('DOC_ROOT').$this->config->get('WEB_ROOT').$this->config->get('CMS_ROOT').'modules/'.$this->name.'/tpl/';
    		$this->smarty->assign($this->name.'_DIR',$this->tpl_dir);
    }

    public function configure( $key, $value ) { }


		final public function getConfiguration ($key,$project_id) 
		{
			
			return $this->modules->getModuleConfiguration($this->name,$key,$project_id);
		}

		final public function setConfiguration ($key,$project_id,$values) 
		{
			return $this->modules->setModuleConfiguration($this->name,$key,$project_id,$values);
		}


}
